package com.zfast.zgn.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;


/**
 * 测试表 2023年2月6日
 *
 * @author zgn
 * @email
 * @date 2023-02-06 09:37:17
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "test_data")
@ApiModel(value = "TestData", description = "测试表 2023年2月6日")
public class TestData implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @Column(name = "id")
    @ApiModelProperty("主键")
    private String id;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "create_date")
    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    @Column(name = "create_name")
    @ApiModelProperty("创建人")
    private String createName;

    @Column(name = "create_id")
    @ApiModelProperty("创建人主键")
    private String createId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "update_date")
    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    @Column(name = "update_name")
    @ApiModelProperty("更新人")
    private String updateName;

    @Column(name = "update_id")
    @ApiModelProperty("更新人主键")
    private String updateId;

    @Column(name = "enable_flag")
    @ApiModelProperty("删除标志0:无;1有")
    private Boolean enableFlag;

}
